const express = require('express');
const bodyParser = require('body-parser')
const cookieParser = require('cookie-parser')
const app = express()
//work with express
const server=require('http').Server(app)
const io=require('socket.io')(server)
const userRouter=require('./user');
io.on('connection',function(socket){
	console.log('user login')
})

app.use(cookieParser());
app.use(bodyParser.json())
app.use('/user',userRouter);
server.listen(9093,function(){
	console.log('Node app start at port 9093')
})



